<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<div style="text-align: center;">
	<div class="btn-group">
		<c:if test="${page.currentPage!=1 }">
			<a class="btn btn-default pageButton" href="?pageNumber=1">首页</a>
		</c:if>
		<c:forEach begin="1" end="${page.totalPage>5?5:page.totalPage }" varStatus="status">
			<a class="btn btn-default ${page.currentPage==status.index?'active':'' } pageButton"
				href="?pageNumber=${status.index }">${status.index }</a>
		</c:forEach>
		
		<c:if test="${page.currentPage!=page.totalPage }">
			<a class="btn btn-default pageButton" href="?pageNumber=${page.totalPage }">末页</a>
		</c:if>
	</div>
	<span>
			${page.currentPage }/${page.totalPage }
		</span>
</div>